/*
 * Created on Mar 11, 2005
 * Created by dfhuynh
 */
package edu.mit.simile.longwell.ui.command;

import java.util.Random;

/**
 * @author dfhuynh
 */
public class Utilities {

	public String randomString() {
		return Long.toString(new Random().nextLong());
	}

	public boolean isImageURL(String url) {
		url = url.toLowerCase();

		return
			url.endsWith(".jpg") ||
			url.endsWith(".jpeg") ||
			url.endsWith(".gif") ||
			url.endsWith(".png");
	}
}
